
package ogame.utilities;

/**
 *
 * @author scchang
 */
public class Constants {
    // Reader constants
    ///////////////////////////////////////////////////////////////////////////
    public static final int READER_SIZE_HEIGHT = 200;
    public static final int READER_SIZE_WIDTH = 500;
    public static final int READER_TEXT_COLS = 35;
    public static final int READER_TEXT_ROWS = 10;
    
    // Default Window Constants
    ///////////////////////////////////////////////////////////////////////////
    public static final int DEFAULT_WINDOW_HEIGHT = 1000;
    public static final int DEFAULT_WINDOW_WIDTH = 1000;
    
    // Costs Window Constants
    ///////////////////////////////////////////////////////////////////////////
    public static final int UNIT_TEXT_FIELD_COLS = 10;
    
    // Data Storage Consants
    ///////////////////////////////////////////////////////////////////////////
    public static final String DATA_STORAGE_FILENAME = "data";
    
    // Research Constants
    ///////////////////////////////////////////////////////////////////////////
    public static final double COMBUSTION_DRIVE_BONUS = 0.1;
    public static final double IMPULSE_DRIVE_BONUS = 0.2;
    public static final double HYPERSPACE_DRIVE_BONUS = 0.3;
    
    // Flight Time Constants
    ///////////////////////////////////////////////////////////////////////////
    public static final int FLIGHT_TIME_DRIVE_COLS = 2;
    
    ///////////////////////////////////////////////////////////////////////////
    public static final String[] DATA_STORAGE_GENERAL_COLS = {
        "max_player_id int",
        "max_planet_id int",
//        "max_fleet_id int",
//        "max_defense_id int"
    };
    
    public static final String[] DATA_STORAGE_PLAYER_COLS = {
        "player_id int PRIMARY KEY",
        "name varchar(255)",
        "planets blob",
        "research blob"
    };
    
    /*
    public static final String[] DATA_STORAGE_FLEETS_COLS = {
        "fleet_id int",
        "player_id int",
        "planet_id int",
        "fleet blob"
    };*/
    
    /*
    public static final String[] DATA_STORAGE_DEFENSES_COLS = {
        "defense_id int",
        "player_id int",
        "planet_id int",
        "defense blob"
    };*/
    
    public static final String[] DATA_STORAGE_PLANETS_COLS = {
        "planet_id int PRIMARY KEY",
        "player_id int",
        "name varchar(255)",
        "galaxy int",
        "system int",
        "slot int",
        "resources blob",
        "buildings blob",
        "fleet blob",
        "defense blob"
    };
    
            
}
